package com.example.gulimall.product;

import com.alibaba.cloud.seata.GlobalTransactionAutoConfiguration;
import com.example.common.constant.BeanScanConstant;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

@EnableFeignClients
@EnableRedisHttpSession
@EnableDiscoveryClient
@SpringBootApplication(scanBasePackages = {
        BeanScanConstant.MP_PATH,
        BeanScanConstant.POLL_PATH,
        BeanScanConstant.FEIGN_PATH,
        BeanScanConstant.CACHE_PATH,
        BeanScanConstant.COMMON_PATH,
        BeanScanConstant.PRODUCT_SELF,
        BeanScanConstant.REDISSON_PATH,
        BeanScanConstant.RABBIT_COMMON_PATH
//        BeanScanConstant.SEATA_PATH,
}, exclude = GlobalTransactionAutoConfiguration.class)
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
